import cv2
import numpy as np

image = cv2.imread('../asset/girl.jpeg')
# img2 浅拷贝
img2 = image
# img3 深拷贝
img3 = image.copy()

# BGR
image[10:100, 10:100] = [0, 0, 255]

while True:
    cv2.imshow('img', image)
    cv2.imshow('img2', img2)
    cv2.imshow('img3', img3)
    key = cv2.waitKey(10)
    if key & 0xFF == ord('q'):
        break

cv2.destroyAllWindows()
